<?php
$fname = $this->App->to_sentence($authuser['fname']);
?>
<section class="vbox">
    <?php echo $this->element('student/breadcrumbs'); ?>
    <section class="scrollable">
        <section class="hbox stretch">

            <?php echo $this->element('student/mini_profile'); ?>

            <aside class="bg-white">
                <section class="vbox">
                    <header class="header bg-light bg-gradient">
                        <ul class="nav nav-tabs nav-white">
                            <li class="active"><a href="#activity" data-toggle="tab">Notification</a></li>
                           <!-- <li class=""><a href="#events" data-toggle="tab">Events</a></li>
                            <li class=""><a href="#interaction" data-toggle="tab">Interaction</a></li>-->
                        </ul>
                    </header>
                    <section class="scrollable">
                        <div class="tab-content">
                            <div class="tab-pane active" id="activity">
                            <ul class="list-group no-radius m-b-none m-t-n-xxs list-group-lg no-border">

                                <?php
                                if($authuser['first_time_pass_changed'] == 'No'){
                                    ?>

                                    <li class="list-group-item bg-danger lter">
                                        <a href="javascript:void(0);" class="thumb-sm pull-left m-r-sm">
                                            <i class="fa fa-warning fa-2x text-white"></i>
                                        </a>
                                        <a href="javascript:void(0);" class="clear" style="margin-bottom: 10px;">
                                            <strong class="block h4 text-white" style="margin-bottom: 10px;">Reset Password</strong>
                                            <small class="block h5 text-white"><?php echo $fname; ?> please change your password. </small>
                                        </a>
                                    </li>
                                <?php
                                }
                                ?>

                                <?php
                                if($notifications){
                                    foreach($notifications as $notify){
                                        $id = $notify['StudentNotification']['id'];
                                        $title = $notify['StudentNotification']['notify_title'];
                                        $msg = $notify['StudentNotification']['notify_msg'];
                                        $time = $this->App->formatMailDate($notify['StudentNotification']['created']);
                                        ?>
                                        <li class="list-group-item">
                                            <a href="javascript:void(0);" class="thumb-sm pull-left m-r-sm">
                                                <i class="fa fa-bell-o fa-2x icon-muted"></i>
                                            </a>
                                            <a href="javascript:void(0);" class="clear" style="margin-bottom: 10px;">
                                                <small class="pull-right h6"> <i class="fa fa-clock-o"></i> <?php echo $time; ?></small>
                                                <strong class="block h4" style="margin-bottom: 10px;"><?php echo $title; ?></strong>
                                                <small class="block h5"><?php echo $msg; ?> </small>
                                            </a>
                                            <a class="btn btn-info rounded btn-xs delete_announcement_btn" href="javascript:void(0);" data-id="<?php echo $id; ?>" >
                                                <i class="fa fa-trash-o"></i>
                                                Remove
                                            </a>
                                            <div class="inner-loader text-center h5 hide"><strong>Removing ...</strong></div>
                                            <div class="mini-blanket hide"></div>
                                        </li>
                                <?php
                                        }
                                    }
                                ?>
                            </ul>
                            <input type="hidden" id="delete_notification" value="<?php echo $this->Html->url(array('controller' => 'Student', 'action' => 'deleteNotification')); ?>" />
                            </div>
                            <div class="tab-pane" id="events">
                                <div class="text-center wrapper">
                                    <i class="fa fa-spinner fa fa-spin fa fa-large"></i>
                                </div>
                            </div>
                            <div class="tab-pane" id="interaction">
                                <div class="text-center wrapper">
                                    <i class="fa fa-spinner fa fa-spin fa fa-large"></i>
                                </div>
                            </div>
                        </div>
                    </section>
                </section>
            </aside>

            <aside class="col-lg-4 b-l">
                <section class="vbox">
                    <section class="scrollable">
                        <div class="wrapper">
                            <?php echo $this->element('student/wg_fee_payment_rate'); ?>
                            <?php echo $this->element('student/wg_calender'); ?>
                        </div>
                    </section>
                </section>
            </aside>

        </section>
    </section>
</section>
<a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen, open" data-target="#nav,html"></a>
<?php
    echo $this->Html->script('student/index.js',array('inline'=>false));
?>